#!/bin/bash

funWithReturn(){
    echo "这个函数会对输入的两个数字进行相加运算..."
    echo "输入第一个数字: "
    read aNum
    echo "输入第二个数字: "
    read anotherNum
    echo "两个数字分别为 $aNum 和 $anotherNum !"
    echo $[aNum + anotherNum]
    echo $[$aNum + $anotherNum]
    echo $((aNum + anotherNum))
    echo $(($aNum + $anotherNum))
    echo `expr $aNum + $anotherNum`
    echo $(expr $aNum + $anotherNum)
    return `expr $aNum + $anotherNum`
}
funWithReturn
echo "输入的两个数字之和为 $? !"
